package cn.com.dhcc.turbo.entity.exch;

import java.io.Serializable;
import java.util.Date;

import cn.com.dhcc.app.core.annotation.SiColumn;
import cn.com.dhcc.app.core.annotation.SiNotDbColumn;
import cn.com.dhcc.app.core.annotation.SiTable;
import cn.com.dhcc.app.core.base.ModuleFeatureBean;

/**
 * 常规数据交换中转
 */
@SiTable(name = "turbo_cross_net_tmp_cm_data")
public class CrossNetTmpCmData extends ModuleFeatureBean implements CmData, Serializable {
	private static final long serialVersionUID = 1891670531486253359L;
	@SiColumn(name = "id", isId = true)
	private String id;//单号
	private String pid;//主单号，处理一点多发的情况
	@SiColumn(name = "DATA_TYPE")
	private String dataType; //数据类型  ： 0：CM_DATA  1:SQL_DATA
	@SiColumn(name = "MSG_TYPE")
	private String msgType; //消息类型  ： 0：单消息  1:组消息   2：子消息
	@SiColumn(name = "SEND_NODECODE")
	private String sendNodecode;//发送节点编码
	
	
	@SiColumn(name = "SEND_ADAPTORCODE")
	private String sendAdaptorcode;//发送适配器
	
	@SiColumn(name = "SEND_BUSICODE")
	private String sendBusicode;//发送业务编码
	@SiColumn(name = "RECV_NODECODE")
	private String recvNodecode;//接收节点编码
	
	@SiColumn(name = "RECV_ADAPTORCODE")
	private String recvAdaptorcode;//接收适配器
	
	private String posthead;//头信息
	private String payload;//报文体存储的路径，文件名字为主键值
	private String resp;//交换平台给业务系统的回执信息
	@SiColumn(name = "RECIVER_SIGNED")
	private String reciverSigned;//业务系统签收
	@SiColumn(name = "SENDER_SIGNED")
	private String senderSigned;//发送者签收
	@SiColumn(name = "SEND_STATUS")
	private String sendStatus; //发送状态，参考Const.sendStatus
	@SiColumn(name = "NOTIFY_STATUS")
	private String notifyStatus; //通知状态，参考Const.notifyStatus
	
	private String routelog;//详细的路由日志
	private String ip;//客户端访问的IP
	private String priority;//消息优先级 参考Const.Priority
	private String pipeline;//消息传输管道详见，参考Const.Pipeline
	@SiColumn(name = "CROSS_NODE")
	private String crossNode; //是否跨节点传输   0：否   1：是  
	@SiColumn(name = "CROSS_NET")
	private String crossNet; //是否跨网传输   0：同网段传输    1：内网到外网  2 外网到内网
	@SiColumn(name = "OUT_GAP_NODE_CODE")
	private String outGapNodeCode;//网闸节点编码（涉及跨网交换的需要记录中转的网闸是哪个节点）
	@SiColumn(name = "INNER_GAP_NODE_CODE")
	private String innerGapNodeCode;//网闸节点编码（涉及跨网交换的需要记录中转的网闸是哪个节点）
	@SiColumn(name = "NOTIFY_SENDER")
	private String notifySender;//是否需要通知接收方   0：否   1：是
	private String trig; //定时发送触发器，填写定时发送的日期，日期格式yyyy-MM-dd HH:mm:ss 选填项
	private String deleted;//是否已经删除      0:否  1:是
	private Date created;//创建时期
	private Date modified;//最后修改日期
	@SiColumn(name = "THROUGH_GAP")
	private String throughGap;//是否走网闸 0不走网闸，1走网闸
	@SiColumn(name = "AUDIT_PERSON")
	private String auditPerson;//审核人
	@SiColumn(name="meta_data")
	private String metaData;
	@SiNotDbColumn
	private String payloadContent;//业务系统发送过来的数据报文体
	@SiNotDbColumn
	private int subMsgNum;//自消息的数目（自个字段在SendCmData才有意义）
	public String getMetaData() {
		return metaData;
	}
	public void setMetaData(String metaData) {
		this.metaData = metaData;
	}
	public String getSendAdaptorcode() {
		return sendAdaptorcode;
	}
	public void setSendAdaptorcode(String sendAdaptorcode) {
		this.sendAdaptorcode = sendAdaptorcode;
	}
	public String getRecvAdaptorcode() {
		return recvAdaptorcode;
	}
	public void setRecvAdaptorcode(String recvAdaptorcode) {
		this.recvAdaptorcode = recvAdaptorcode;
	}
	public String getThroughGap() {
		return throughGap;
	}
	public void setThroughGap(String throughGap) {
		this.throughGap = throughGap;
	}
	public String getAuditPerson() {
		return auditPerson;
	}
	public void setAuditPerson(String auditPerson) {
		this.auditPerson = auditPerson;
	}
	public String getId() {
		return id;
	}
	public String getPid() {
		return pid;
	}
	public String getDataType() {
		return dataType;
	}
	public String getMsgType() {
		return msgType;
	}
	public String getSendNodecode() {
		return sendNodecode;
	}
	
	public String getSendBusicode() {
		return sendBusicode;
	}
	public String getRecvNodecode() {
		return recvNodecode;
	}
	
	public String getPosthead() {
		return posthead;
	}
	public String getPayload() {
		return payload;
	}
	public String getResp() {
		return resp;
	}
	public String getReciverSigned() {
		return reciverSigned;
	}
	public String getSenderSigned() {
		return senderSigned;
	}
	public String getSendStatus() {
		return sendStatus;
	}
	public String getNotifyStatus() {
		return notifyStatus;
	}
	public String getRoutelog() {
		return routelog;
	}
	public String getIp() {
		return ip;
	}
	public String getPriority() {
		return priority;
	}
	public String getPipeline() {
		return pipeline;
	}
	public String getCrossNode() {
		return crossNode;
	}
	public String getCrossNet() {
		return crossNet;
	}
	
	public String getNotifySender() {
		return notifySender;
	}
	public String getTrig() {
		return trig;
	}
	public String getDeleted() {
		return deleted;
	}
	public Date getCreated() {
		return created;
	}
	public Date getModified() {
		return modified;
	}
	public String getPayloadContent() {
		return payloadContent;
	}
	public int getSubMsgNum() {
		return subMsgNum;
	}
	public void setId(String id) {
		this.id = id;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	public void setDataType(String dataType) {
		this.dataType = dataType;
	}
	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}
	public void setSendNodecode(String sendNodecode) {
		this.sendNodecode = sendNodecode;
	}
	
	public void setSendBusicode(String sendBusicode) {
		this.sendBusicode = sendBusicode;
	}
	public void setRecvNodecode(String recvNodecode) {
		this.recvNodecode = recvNodecode;
	}
	
	public void setPosthead(String posthead) {
		this.posthead = posthead;
	}
	public void setPayload(String payload) {
		this.payload = payload;
	}
	public void setResp(String resp) {
		this.resp = resp;
	}
	public void setReciverSigned(String reciverSigned) {
		this.reciverSigned = reciverSigned;
	}
	public void setSenderSigned(String senderSigned) {
		this.senderSigned = senderSigned;
	}
	public void setSendStatus(String sendStatus) {
		this.sendStatus = sendStatus;
	}
	public void setNotifyStatus(String notifyStatus) {
		this.notifyStatus = notifyStatus;
	}
	public void setRoutelog(String routelog) {
		this.routelog = routelog;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public void setPriority(String priority) {
		this.priority = priority;
	}
	public void setPipeline(String pipeline) {
		this.pipeline = pipeline;
	}
	public void setCrossNode(String crossNode) {
		this.crossNode = crossNode;
	}
	public void setCrossNet(String crossNet) {
		this.crossNet = crossNet;
	}
	
	public String getOutGapNodeCode() {
		return outGapNodeCode;
	}
	public void setOutGapNodeCode(String outGapNodeCode) {
		this.outGapNodeCode = outGapNodeCode;
	}
	public String getInnerGapNodeCode() {
		return innerGapNodeCode;
	}
	public void setInnerGapNodeCode(String innerGapNodeCode) {
		this.innerGapNodeCode = innerGapNodeCode;
	}
	public void setNotifySender(String notifySender) {
		this.notifySender = notifySender;
	}
	public void setTrig(String trig) {
		this.trig = trig;
	}
	public void setDeleted(String deleted) {
		this.deleted = deleted;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public void setModified(Date modified) {
		this.modified = modified;
	}
	public void setPayloadContent(String payloadContent) {
		this.payloadContent = payloadContent;
	}
	public void setSubMsgNum(int subMsgNum) {
		this.subMsgNum = subMsgNum;
	}
	@Override
	public String toString() {
		return "CrossNetTmpCmData [id=" + id + ", pid=" + pid + ", dataType="
				+ dataType + ", msgType=" + msgType + ", sendNodecode="
				+ sendNodecode + ", sendAdaptorcode=" + sendAdaptorcode
				+ ", sendBusicode=" + sendBusicode + ", recvNodecode="
				+ recvNodecode + ", recvAdaptorcode=" + recvAdaptorcode
				+ ", posthead=" + posthead + ", payload=" + payload + ", resp="
				+ resp + ", reciverSigned=" + reciverSigned + ", senderSigned="
				+ senderSigned + ", sendStatus=" + sendStatus
				+ ", notifyStatus=" + notifyStatus + ", routelog=" + routelog
				+ ", ip=" + ip + ", priority=" + priority + ", pipeline="
				+ pipeline + ", crossNode=" + crossNode + ", crossNet="
				+ crossNet + ", outGapNodeCode=" + outGapNodeCode
				+ ", innerGapNodeCode=" + innerGapNodeCode + ", notifySender="
				+ notifySender + ", trig=" + trig + ", deleted=" + deleted
				+ ", created=" + created + ", modified=" + modified
				+ ", throughGap=" + throughGap + ", auditPerson=" + auditPerson
				+ ", metaData=" + metaData + ", payloadContent="
				+ payloadContent + ", subMsgNum=" + subMsgNum + "]";
	}
	
	
}